package com.bianxianmao.find.activity;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.bianxianmao.R;

/**
 * Created by Administrator on 2017/7/27.
 */

public class NewActivity extends Activity implements View.OnClickListener {

    private TextView rule;
    private Button btnget;
    private RecyclerView recyclerview;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_new);
        initData();
        initListener();

    }


    private void initData() {
        rule = (TextView) findViewById(R.id.tv_rule);
        btnget = (Button) findViewById(R.id.btn_get);
        recyclerview = (RecyclerView) findViewById(R.id.recyclerview);
    }

    private void initListener() {
        rule.setOnClickListener(this);
        btnget.setOnClickListener(this);

    }
//    private void showPopuwindow(){
//        View v = this.getLayoutInflater().inflate(
//                R.layout.newPopu, null);
//    }


    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.tv_rule:

                break;
            case R.id.btn_get:
                break;
        }

    }
}
